#pragma once

#include <MyViews/PanView.h>

//class PanView;

class RubberRect {
private:
	PanView *	m_pWnd;
	bool			m_Visible;
	bool			m_Shown;
	CRect			m_Box;
	CRect			m_Rect;

	void Show();
	void Hide();
	void Draw(CDC * pDC);

public:
	RubberRect(PanView * pWnd);

	void PinDown(CPoint p);
	void Stretch(CPoint p);
	void SetVisible(bool on);

	CRect GetBox();
	bool IsVisible() const 
		{ return m_Visible; };
};
